package org.dromara.bean.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;
import java.util.List;

/**
 * 商城订单对象 his_goods_order
 *
 * @author Lion Li
 * @date 2024-12-23
 */
@Data

@TableName("his_goods_order")
public class HisGoodsOrder {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 总金额
     */
    private BigDecimal totalPrice;

    /**
     * 支付金额
     */
    private BigDecimal payPrice;

    /**
     * 运费
     */
    private BigDecimal carriage;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 地址id
     */
    private Long addressId;

    /**
     * 单号
     */
    private String logisticsNo;

    /**
     * 快递公司
     */
    private Long logisticsCompanyId;

    /**
     * 订单号
     */
    private String orderNumber;


    /**
     * 状态
     */
    private Integer status;

    /**
     * 删除状态
     */
    @TableLogic
    private Long delFlag;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    /**
     * 退款原因
     */
    private String refundCause;
    /**
     * 详情id
     */
    @TableField(exist = false)
    private List<Long> detailId;


    /**
     * 发货时间
     */
    private Date deliveryTime;


    private Integer zt;

}
